
//修改基本资料
function Check()
{

    $("#button").prop("disabled",true);



    if ($.trim($('#paypassword').val()) == '')
    {

        alert("请输入交易密码！");
        $('#paypassword').focus();
        $('#button').prop('disabled',false);
        return false;


    }

    var price,paypassword;
    price=$.trim($('#yzje').val());

  
    paypassword=$.trim($('#paypassword').val());


    if(confirm('请确认提交排单？')) {

       
            $.ajax({
                type: "POST",
                url: "/user/dotohelp",
                data: {'price': price, 'paypassword': paypassword},
                async: true,
                //dataType: "json",
                success: function (data) {
                    
                   
                    if (data == 1) {
                        sign = false;
                        alert('排单提交成功！');
                        location.href = '/user/ltohelp.html';

                    }
                    if (data == 2) {
                        alert('交易密码不正确，请重新输入！');
                        $('#paypassword').focus();
                        $('#button').prop('disabled', false);

                    }
                    if (data == 3) {
                        alert('门票余额不足，请先联系客服充值！');
                        $('#yzje').focus();
                        $('#button').prop('disabled', false);

                    }
                    if (data == 5) {
                        alert('您还有订单没有完成，请先完成订单再来排单!');
                        location.href='/user/ltohelp.html';

                    }
                   

                }
            })
            return false;
        }
        else
        {
             $('#button').prop('disabled', false);
        }
        
}


var changeprice=function(price)
{
    $('#total').val(price*0.01);
}

